package com.android.lovely.ui.dialog

import androidx.fragment.app.activityViewModels
import androidx.lifecycle.lifecycleScope
import com.android.lovely.R
import com.android.lovely.const.StartCreateRole
import com.android.lovely.databinding.DialogCreateRoleBinding
import com.android.lovely.databinding.DialogCreateRoleRetryBinding
import com.android.lovely.framework.BaseDialogFragment
import com.android.lovely.ui.viewmodel.CreateRoleViewModel
import com.kotlin.extensions.bus.FlowBus
import com.kotlin.extensions.bus.post
import com.kotlin.extensions.coroutine.CoroutineExt.launchSafety
import com.kotlin.extensions.view.ViewExt.clickable
import kotlinx.coroutines.flow.collectLatest

/**
 *
 * @author why
 * @date 2025/4/9 01:29
 */
class SmartCreateRoleRetryDialog: BaseDialogFragment<DialogCreateRoleRetryBinding>() {

    override fun initializeViews() {
        binding.confirm.clickable {
            FlowBus.post(StartCreateRole())
            dismiss()
        }
    }
}